export default {
  getArticle({ commit, state }, id) {
    return new Promise((resolve, reject) => {
      const article = {
        title: 'How to get started with Nuxt',
        author: 'Dapianzi Carl',
        content: '',
        like: 15,
        comments: 2,
        publish: '2020-08-24 18:12:14',
        share: 0,
        cate: '',
        tags: [
          'Vue',
          'Nuxt',
          'Antd',
          'Webpack',
          'Node.js',
          'Javascript',
          'Web',
        ],
      }
      setTimeout(() => {
        commit('SET_ARTICLE', article)
        resolve()
      }, 800)
    })
  },
}
